package com.teamall.web.sys.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class TownAidOrgArg {
    private String pk_name = "LEADER_ORG_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<TownAidOrgCriteria> oredCriteria;

    public TownAidOrgArg() {
        oredCriteria = new ArrayList<TownAidOrgCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<TownAidOrgCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(TownAidOrgCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public TownAidOrgCriteria or() {
    	TownAidOrgCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public TownAidOrgCriteria createCriteria() {
    	TownAidOrgCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected TownAidOrgCriteria createCriteriaInternal() {
    	TownAidOrgCriteria criteria = new TownAidOrgCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<TownAidOrgCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<TownAidOrgCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<TownAidOrgCriterion> getAllCriteria() {
            return criteria;
        }

        public List<TownAidOrgCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new TownAidOrgCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new TownAidOrgCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new TownAidOrgCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new TownAidOrgCriterion(condition, value1, value2));
        }

        public TownAidOrgCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (TownAidOrgCriteria) this;
        }
        public TownAidOrgCriteria andLeaderOrgIdIsNull() {
            addCriterion("LEADER_ORG_ID is null");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdIsNotNull() {
            addCriterion("LEADER_ORG_ID is not null");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdEqualTo(Integer value) {
            addCriterion("LEADER_ORG_ID =", value, "LEADER_ORG_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdNotEqualTo(Integer value) {
            addCriterion("LEADER_ORG_ID <>", value, "LEADER_ORG_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdGreaterThan(Integer value) {
            addCriterion("LEADER_ORG_ID >", value, "LEADER_ORG_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("LEADER_ORG_ID >=", value, "LEADER_ORG_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdLessThan(Integer value) {
            addCriterion("LEADER_ORG_ID <", value, "LEADER_ORG_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdLessThanOrEqualTo(Integer value) {
            addCriterion("LEADER_ORG_ID <=", value, "LEADER_ORG_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdLike(Integer value) {
            addCriterion("LEADER_ORG_ID like ", value, "LEADER_ORG_ID", 1);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdNotLike(Integer value) {
            addCriterion("LEADER_ORG_ID  not like ", value, "LEADER_ORG_ID", 1);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdLeftLike(Integer value) {
            addCriterion("LEADER_ORG_ID like ", value, "LEADER_ORG_ID", 0);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdNotLeftLike(Integer value) {
            addCriterion("LEADER_ORG_ID  not like ", value, "LEADER_ORG_ID", 0);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdRightLike(Integer value) {
            addCriterion("LEADER_ORG_ID like ", value, "LEADER_ORG_ID", 2);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdNotRightLike(Integer value) {
            addCriterion("LEADER_ORG_ID  not like ", value, "LEADER_ORG_ID", 2);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdIn(List<Integer> values) {
            addCriterion("LEADER_ORG_ID  in ", values, "LEADER_ORG_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdNotIn(List<Integer> values) {
            addCriterion("LEADER_ORG_ID not in ", values, "LEADER_ORG_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdBetween(Integer value1, Integer value2) {
            addCriterion("LEADER_ORG_ID between ", value1, value2, "LEADER_ORG_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgIdNotBetween(Integer value1, Integer value2) {
            addCriterion("LEADER_ORG_ID not between ", value1, value2, "LEADER_ORG_ID");
            return (TownAidOrgCriteria) this;
        }
        public TownAidOrgCriteria andTownIdIsNull() {
            addCriterion("TOWN_ID is null");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdIsNotNull() {
            addCriterion("TOWN_ID is not null");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdEqualTo(Integer value) {
            addCriterion("TOWN_ID =", value, "TOWN_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdNotEqualTo(Integer value) {
            addCriterion("TOWN_ID <>", value, "TOWN_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdGreaterThan(Integer value) {
            addCriterion("TOWN_ID >", value, "TOWN_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("TOWN_ID >=", value, "TOWN_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdLessThan(Integer value) {
            addCriterion("TOWN_ID <", value, "TOWN_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdLessThanOrEqualTo(Integer value) {
            addCriterion("TOWN_ID <=", value, "TOWN_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 1);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdNotLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 1);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdLeftLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 0);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdNotLeftLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 0);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdRightLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 2);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdNotRightLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 2);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdIn(List<Integer> values) {
            addCriterion("TOWN_ID  in ", values, "TOWN_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdNotIn(List<Integer> values) {
            addCriterion("TOWN_ID not in ", values, "TOWN_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdBetween(Integer value1, Integer value2) {
            addCriterion("TOWN_ID between ", value1, value2, "TOWN_ID");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andTownIdNotBetween(Integer value1, Integer value2) {
            addCriterion("TOWN_ID not between ", value1, value2, "TOWN_ID");
            return (TownAidOrgCriteria) this;
        }
        public TownAidOrgCriteria andPartySecretaryIsNull() {
            addCriterion("PARTY_SECRETARY is null");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryIsNotNull() {
            addCriterion("PARTY_SECRETARY is not null");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryEqualTo(String value) {
            addCriterion("PARTY_SECRETARY =", value, "PARTY_SECRETARY");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryNotEqualTo(String value) {
            addCriterion("PARTY_SECRETARY <>", value, "PARTY_SECRETARY");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryGreaterThan(String value) {
            addCriterion("PARTY_SECRETARY >", value, "PARTY_SECRETARY");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryGreaterThanOrEqualTo(String value) {
            addCriterion("PARTY_SECRETARY >=", value, "PARTY_SECRETARY");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryLessThan(String value) {
            addCriterion("PARTY_SECRETARY <", value, "PARTY_SECRETARY");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryLessThanOrEqualTo(String value) {
            addCriterion("PARTY_SECRETARY <=", value, "PARTY_SECRETARY");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryLike(String value) {
            addCriterion("PARTY_SECRETARY like ", value, "PARTY_SECRETARY", 1);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryNotLike(String value) {
            addCriterion("PARTY_SECRETARY  not like ", value, "PARTY_SECRETARY", 1);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryLeftLike(String value) {
            addCriterion("PARTY_SECRETARY like ", value, "PARTY_SECRETARY", 0);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryNotLeftLike(String value) {
            addCriterion("PARTY_SECRETARY  not like ", value, "PARTY_SECRETARY", 0);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryRightLike(String value) {
            addCriterion("PARTY_SECRETARY like ", value, "PARTY_SECRETARY", 2);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryNotRightLike(String value) {
            addCriterion("PARTY_SECRETARY  not like ", value, "PARTY_SECRETARY", 2);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryIn(List<String> values) {
            addCriterion("PARTY_SECRETARY  in ", values, "PARTY_SECRETARY");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryNotIn(List<String> values) {
            addCriterion("PARTY_SECRETARY not in ", values, "PARTY_SECRETARY");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryBetween(String value1, String value2) {
            addCriterion("PARTY_SECRETARY between ", value1, value2, "PARTY_SECRETARY");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andPartySecretaryNotBetween(String value1, String value2) {
            addCriterion("PARTY_SECRETARY not between ", value1, value2, "PARTY_SECRETARY");
            return (TownAidOrgCriteria) this;
        }
        public TownAidOrgCriteria andGroupLeaderIsNull() {
            addCriterion("GROUP_LEADER is null");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderIsNotNull() {
            addCriterion("GROUP_LEADER is not null");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderEqualTo(String value) {
            addCriterion("GROUP_LEADER =", value, "GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderNotEqualTo(String value) {
            addCriterion("GROUP_LEADER <>", value, "GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderGreaterThan(String value) {
            addCriterion("GROUP_LEADER >", value, "GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderGreaterThanOrEqualTo(String value) {
            addCriterion("GROUP_LEADER >=", value, "GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderLessThan(String value) {
            addCriterion("GROUP_LEADER <", value, "GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderLessThanOrEqualTo(String value) {
            addCriterion("GROUP_LEADER <=", value, "GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderLike(String value) {
            addCriterion("GROUP_LEADER like ", value, "GROUP_LEADER", 1);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderNotLike(String value) {
            addCriterion("GROUP_LEADER  not like ", value, "GROUP_LEADER", 1);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderLeftLike(String value) {
            addCriterion("GROUP_LEADER like ", value, "GROUP_LEADER", 0);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderNotLeftLike(String value) {
            addCriterion("GROUP_LEADER  not like ", value, "GROUP_LEADER", 0);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderRightLike(String value) {
            addCriterion("GROUP_LEADER like ", value, "GROUP_LEADER", 2);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderNotRightLike(String value) {
            addCriterion("GROUP_LEADER  not like ", value, "GROUP_LEADER", 2);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderIn(List<String> values) {
            addCriterion("GROUP_LEADER  in ", values, "GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderNotIn(List<String> values) {
            addCriterion("GROUP_LEADER not in ", values, "GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderBetween(String value1, String value2) {
            addCriterion("GROUP_LEADER between ", value1, value2, "GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupLeaderNotBetween(String value1, String value2) {
            addCriterion("GROUP_LEADER not between ", value1, value2, "GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }
        public TownAidOrgCriteria andDeputyGroupLeaderIsNull() {
            addCriterion("DEPUTY_GROUP_LEADER is null");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderIsNotNull() {
            addCriterion("DEPUTY_GROUP_LEADER is not null");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderEqualTo(String value) {
            addCriterion("DEPUTY_GROUP_LEADER =", value, "DEPUTY_GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderNotEqualTo(String value) {
            addCriterion("DEPUTY_GROUP_LEADER <>", value, "DEPUTY_GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderGreaterThan(String value) {
            addCriterion("DEPUTY_GROUP_LEADER >", value, "DEPUTY_GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderGreaterThanOrEqualTo(String value) {
            addCriterion("DEPUTY_GROUP_LEADER >=", value, "DEPUTY_GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderLessThan(String value) {
            addCriterion("DEPUTY_GROUP_LEADER <", value, "DEPUTY_GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderLessThanOrEqualTo(String value) {
            addCriterion("DEPUTY_GROUP_LEADER <=", value, "DEPUTY_GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderLike(String value) {
            addCriterion("DEPUTY_GROUP_LEADER like ", value, "DEPUTY_GROUP_LEADER", 1);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderNotLike(String value) {
            addCriterion("DEPUTY_GROUP_LEADER  not like ", value, "DEPUTY_GROUP_LEADER", 1);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderLeftLike(String value) {
            addCriterion("DEPUTY_GROUP_LEADER like ", value, "DEPUTY_GROUP_LEADER", 0);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderNotLeftLike(String value) {
            addCriterion("DEPUTY_GROUP_LEADER  not like ", value, "DEPUTY_GROUP_LEADER", 0);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderRightLike(String value) {
            addCriterion("DEPUTY_GROUP_LEADER like ", value, "DEPUTY_GROUP_LEADER", 2);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderNotRightLike(String value) {
            addCriterion("DEPUTY_GROUP_LEADER  not like ", value, "DEPUTY_GROUP_LEADER", 2);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderIn(List<String> values) {
            addCriterion("DEPUTY_GROUP_LEADER  in ", values, "DEPUTY_GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderNotIn(List<String> values) {
            addCriterion("DEPUTY_GROUP_LEADER not in ", values, "DEPUTY_GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderBetween(String value1, String value2) {
            addCriterion("DEPUTY_GROUP_LEADER between ", value1, value2, "DEPUTY_GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andDeputyGroupLeaderNotBetween(String value1, String value2) {
            addCriterion("DEPUTY_GROUP_LEADER not between ", value1, value2, "DEPUTY_GROUP_LEADER");
            return (TownAidOrgCriteria) this;
        }
        public TownAidOrgCriteria andGroupMemberIsNull() {
            addCriterion("GROUP_MEMBER is null");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberIsNotNull() {
            addCriterion("GROUP_MEMBER is not null");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberEqualTo(String value) {
            addCriterion("GROUP_MEMBER =", value, "GROUP_MEMBER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberNotEqualTo(String value) {
            addCriterion("GROUP_MEMBER <>", value, "GROUP_MEMBER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberGreaterThan(String value) {
            addCriterion("GROUP_MEMBER >", value, "GROUP_MEMBER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberGreaterThanOrEqualTo(String value) {
            addCriterion("GROUP_MEMBER >=", value, "GROUP_MEMBER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberLessThan(String value) {
            addCriterion("GROUP_MEMBER <", value, "GROUP_MEMBER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberLessThanOrEqualTo(String value) {
            addCriterion("GROUP_MEMBER <=", value, "GROUP_MEMBER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberLike(String value) {
            addCriterion("GROUP_MEMBER like ", value, "GROUP_MEMBER", 1);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberNotLike(String value) {
            addCriterion("GROUP_MEMBER  not like ", value, "GROUP_MEMBER", 1);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberLeftLike(String value) {
            addCriterion("GROUP_MEMBER like ", value, "GROUP_MEMBER", 0);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberNotLeftLike(String value) {
            addCriterion("GROUP_MEMBER  not like ", value, "GROUP_MEMBER", 0);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberRightLike(String value) {
            addCriterion("GROUP_MEMBER like ", value, "GROUP_MEMBER", 2);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberNotRightLike(String value) {
            addCriterion("GROUP_MEMBER  not like ", value, "GROUP_MEMBER", 2);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberIn(List<String> values) {
            addCriterion("GROUP_MEMBER  in ", values, "GROUP_MEMBER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberNotIn(List<String> values) {
            addCriterion("GROUP_MEMBER not in ", values, "GROUP_MEMBER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberBetween(String value1, String value2) {
            addCriterion("GROUP_MEMBER between ", value1, value2, "GROUP_MEMBER");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andGroupMemberNotBetween(String value1, String value2) {
            addCriterion("GROUP_MEMBER not between ", value1, value2, "GROUP_MEMBER");
            return (TownAidOrgCriteria) this;
        }
        public TownAidOrgCriteria andLeaderOrgOfficeIsNull() {
            addCriterion("LEADER_ORG_OFFICE is null");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeIsNotNull() {
            addCriterion("LEADER_ORG_OFFICE is not null");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeEqualTo(String value) {
            addCriterion("LEADER_ORG_OFFICE =", value, "LEADER_ORG_OFFICE");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeNotEqualTo(String value) {
            addCriterion("LEADER_ORG_OFFICE <>", value, "LEADER_ORG_OFFICE");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeGreaterThan(String value) {
            addCriterion("LEADER_ORG_OFFICE >", value, "LEADER_ORG_OFFICE");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeGreaterThanOrEqualTo(String value) {
            addCriterion("LEADER_ORG_OFFICE >=", value, "LEADER_ORG_OFFICE");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeLessThan(String value) {
            addCriterion("LEADER_ORG_OFFICE <", value, "LEADER_ORG_OFFICE");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeLessThanOrEqualTo(String value) {
            addCriterion("LEADER_ORG_OFFICE <=", value, "LEADER_ORG_OFFICE");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeLike(String value) {
            addCriterion("LEADER_ORG_OFFICE like ", value, "LEADER_ORG_OFFICE", 1);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeNotLike(String value) {
            addCriterion("LEADER_ORG_OFFICE  not like ", value, "LEADER_ORG_OFFICE", 1);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeLeftLike(String value) {
            addCriterion("LEADER_ORG_OFFICE like ", value, "LEADER_ORG_OFFICE", 0);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeNotLeftLike(String value) {
            addCriterion("LEADER_ORG_OFFICE  not like ", value, "LEADER_ORG_OFFICE", 0);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeRightLike(String value) {
            addCriterion("LEADER_ORG_OFFICE like ", value, "LEADER_ORG_OFFICE", 2);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeNotRightLike(String value) {
            addCriterion("LEADER_ORG_OFFICE  not like ", value, "LEADER_ORG_OFFICE", 2);
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeIn(List<String> values) {
            addCriterion("LEADER_ORG_OFFICE  in ", values, "LEADER_ORG_OFFICE");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeNotIn(List<String> values) {
            addCriterion("LEADER_ORG_OFFICE not in ", values, "LEADER_ORG_OFFICE");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeBetween(String value1, String value2) {
            addCriterion("LEADER_ORG_OFFICE between ", value1, value2, "LEADER_ORG_OFFICE");
            return (TownAidOrgCriteria) this;
        }

        public TownAidOrgCriteria andLeaderOrgOfficeNotBetween(String value1, String value2) {
            addCriterion("LEADER_ORG_OFFICE not between ", value1, value2, "LEADER_ORG_OFFICE");
            return (TownAidOrgCriteria) this;
        }

    }

    public static class TownAidOrgCriteria extends GeneratedCriteria {

        protected TownAidOrgCriteria() {
            super();
        }
    }

    public static class TownAidOrgCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected TownAidOrgCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected TownAidOrgCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected TownAidOrgCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected TownAidOrgCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected TownAidOrgCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected TownAidOrgCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}